let genCounter = 0

// 生成 Widget ID
export function genId (prefix: string) {
  const customPrefix = prefix ? prefix + '_' : ''
  const randPostfix = `${+new Date()}_${genCounter++}`
  return `${customPrefix}${randPostfix}`
}
